import axios from 'axios'

export default class api{
    //简报
    static brieData(...pargrm){
      return axios.post('/vrv-monitor-platform-web/collection/queryMaterial',{startQueryTime:pargrm[0],endQueryTime:pargrm[1],pageNo:pargrm[2],pageSize:pargrm[3],sortType:pargrm[4]})
    }
    //简报删除
    static deleData(...pargram){
      return axios.post('/vrv-monitor-platform-web/collection/delete',{ids:pargram[0]})
    }
    static deleInfoData(...pargram){
      return axios.post('/vrv-monitor-platform-web/data/delete',{deleteIds:pargram[0]})
    }
    //舆情列表
    static oprender(...pargram){
      return axios.post('/vrv-monitor-platform-web/data/query',{startTime:pargram[0],endTime:pargram[1],currentPage:pargram[2],limit:pargram[3],sortType:pargram[4],scope:-1,abroad:-1})
    }
    //舆情搜索
    static searhome(...pargram){
      return axios.post('/vrv-monitor-platform-web/data/homeSearch',{query:pargram[0],currentPage:pargram[1],size:pargram[2],sortType:pargram[3],searchType:'localsearch',
      scope:'-1',sortField:'poTime'}
     )
    }
    //编辑简报
    static renderEditor(...pargram){
      return axios.post('/vrv-monitor-platform-web/data/queryByIds',{ids:pargram[0],sortType:pargram[1]}
     )
    }
    //简报生成
    static gebraword(...pargram){
      return axios.post('/vrv-monitor-platform-web/briefing/insertBriefingData',{briefingName:pargram[0],doc_ids:pargram[1],templateNo:pargram[2]}
    )
    }
    //简报列表
    static briefList(...pargram){
      return axios.post('/vrv-monitor-platform-web/briefing/queryByOrgCode',{briefingName:pargram[0],endQueryTime:pargram[1],startQueryTime:pargram[2]}
    )
    }
    static birefdelete(...pargram){
      return axios.post('/vrv-monitor-platform-web/briefing/deleteBriefing',{id:pargram[0]})
    }
    //修改简报列表
    static birefUpdate(...pargram){
      return axios.post('/vrv-monitor-platform-web/briefing/updateBriefing',{briefingName:pargram[0],headStyle:pargram[1],id:pargram[2],periods:pargram[3],suggestion:pargram[4],organizationName:pargram[5],titles:pargram[6]})
    }
    //获取简报信息
    static birefInfo(...pargram){
      return axios.post('/vrv-monitor-platform-web/briefing/queryById',{id:pargram[0]})
    }
}